const path = require('path')
const HtmlWebpackPlugin = require('html-webpack-plugin')
module.exports = {
    mode:'development',
    devtool:"none",//不产生sourceMap
    entry:'./src/index.js',
    output:{
        filename:"bundle.js",
        path:path.resolve('dist')
    },
    plugins:[
       new HtmlWebpackPlugin({
           template:'./src/index.html'
       })
    ]
}